<?php
MYTCONN();

if (isset($_GET['aml_ID'])) {
    $GET = $GLOBALS['MYT']->db_array("SELECT * FROM hd_amllocks WHERE REF = " . $_GET['aml_ID']);
} else {
    $GET = $GLOBALS['MYT']->db_array("DESCRIBE hd_amllocks");
}

form_pr('editAMLLevel', '', '', 'post');

echo '<label style="position:absolute;top:30px;left:20px">ID</label>';
echo '<label style="position:absolute;top:55px;left:20px">Nivel</label>';
echo '<label style="position:absolute;top:80px;left:20px">Pais</label>';
echo '<label style="position:absolute;top:105px;left:20px">Valor</label>';
echo '<label style="position:absolute;top:130px;left:20px">Moeda</label>';
echo '<label style="position:absolute;top:155px;left:20px">Periodo</label>';
echo '<label style="position:absolute;top:180px;left:20px">Envios</label>';
echo '<label style="position:absolute;top:205px;left:20px">Documentos</label>';
echo '<label style="position:absolute;top:230px;left:20px">Reportar</label>';

mn_field('text', 'ED', 'REF', '', '3', '2', '', '" style="position:absolute;top:30px;left:220px');
mn_field('hselect', 'ED', 'blk_Status', '', "1;2;3#1;2;3", '', '', '" style="position:absolute;top:400px;left:220px');
mn_field('text', 'ED', 'INTERV', '', '3', '2', '', '" style="position:absolute;top:400px;left:220px');
mn_field('text', 'ED', 'AMOUNT', '0.00', '8', '8', '', '" style="position:absolute;top:400px;left:220px');
mn_field('text', 'ED', 'QUANT', '0', '4', '4', '', '" style="position:absolute;top:400px;left:220px');
mn_field('select', 'ED', 'DOCS', '', "SELECT tdc_Id AS ID, tdc_Tipo AS NAME FROM hd_documentostipos", '', '', '" style="position:absolute;top:400px;left:220px');
mn_field('hselect', 'ED', 'REPORT', '', "Activo;Inactivo#1;0", '', '', '" style="position:absolute;top:400px;left:220px');

mn_field('button', 'ED', 'amll_Submit', 'Guardar', '', '', '', '" style="position:absolute;top:400px;left:120px" onclick="
		document.editAMLLevel.action=\'_response/call.php?get=Compliance/cpl_amlleveledit\';
		subform(\'editAMLLevel\',\'rsfrmAMLL\');');
?>
<div id="rsfrmAMLL" style="position:absolute;top:400px;left:220px"></div>
</form>